#!/usr/bin/env python
# encoding: utf-8
"""
@author: youfeng
@email: youfeng243@163.com
@license: Apache Licence
@file: Model.py
@time: 2018/1/5 20:20
"""

# 分类信息
# 列表页
STORE_TYPE_LIST = 'list'
# 详情页
STORE_TYPE_DETAIL = 'detail'
# 年报
STORE_TYPE_ANNUAL = 'annual'


# 工商信息模型
class GsxtModel(object):
    # 基本信息
    # base_info: {list:[{url:xxx, text:xxx}], detail:[{url:xxx, text:xxx}]}
    BASE_INFO = 'base_info'

    # 股东信息   页面第二项
    # shareholder_info: {list:[{url:xxx, text:xxx}], detail:[{url:xxx, text:xxx}]}
    SHAREHOLDER_INFO = 'shareholder_info'

    # 变更信息
    # change_info: {list:[{url:xxx, text:xxx}], detail:[{url:xxx, text:xxx}]}
    CHANGE_INFO = 'change_info'

    # 主要人员
    # key_person_info: {list:[{url:xxx, text:xxx}], detail:[{url:xxx, text:xxx}]}
    KEY_PERSON_INFO = 'key_person_info'

    # 分支机构
    # branch_info: {list:[{url:xxx, text:xxx}], detail:[{url:xxx, text:xxx}]}
    BRANCH_INFO = 'branch_info'

    # 出资信息 或者 股东及出资信息  页面第一项
    # contributive_info: {list:[{url:xxx, text:xxx}], detail:[{url:xxx, text:xxx}]}
    CONTRIBUTIVE_INFO = 'contributive_info'

    # 清算信息
    # liquidation_info: {list:[{url:xxx, text:xxx}], detail:[{url:xxx, text:xxx}]}
    LIQUIDATION_INFO = "liquidation_info"

    # 动产抵押登记信息
    CHATTEL_MORTGAGE_INFO = 'chattel_mortgage_info'

    # 股权出质登记信息 股权出资登记
    EQUITY_PLEDGED_INFO = 'equity_pledged_info'

    # 知识产权出质登记信息
    INTELLECTUAL_PROPERTY_INFO = 'intellectual_property_info'

    # 商标注册信息
    TRADEMARK_REGISTRATION_INFO = 'trademark_registration_info'

    # 抽查检查结果信息
    SPOT_CHECK_RESULT_INFO = 'spot_check_result_info'

    # 双随机抽查检查结果信息
    DOUBLE_SPOT_CHECK_RESULT_INFO = 'double_spot_check_result_info'

    # 司法协助信息
    JUDICIAL_ASSISTANCE_INFO = 'judicial_assistance_info'

    # 官网提供行政许可信息
    ADMINISTRATIVE_LICENSING_INFO = 'administrative_licensing_info'

    # 官网提供行政处罚信息
    ADMINISTRATIVE_PENALTY_INFO = 'administrative_penalty_info'

    # 列入经营异常名录信息
    ABNORMAL_OPERATION_INFO = 'abnormal_operation_info'

    # 列入严重违法失信企业名单（黑名单）信息
    ILLEGAL_PROMISE_ENTERPRISE_INFO = 'illegal_promise_enterprise_info'

    # 股权变更信息
    CHANGE_SHAREHOLDING_INFO = 'change_shareholding_info'

    # 企业即时行政许可信息
    COMPANY_ADMINISTRATIVE_LICENSING_INFO = 'company_administrative_licensing_info'

    # 企业即时知识产权出质登记信息
    COMPANY_INTELLECTUAL_PROPERTY_INFO = 'company_intellectual_property_info'

    # 企业即时行政处罚信息
    COMPANY_ADMINISTRATIVE_PENALTY_INFO = 'company_administrative_penalty_info'

    # 失信被执行人信息
    BREAK_PROMISE_INFO = 'break_promise_info'

    # 重大税收违法案件信息
    TAX_ILLEGAL_INFO = 'tax_illegal_info'

    # 企业年报
    ANNUAL_INFO = "annual_report"

    # 简易注销公告信息
    SIMPLE_CANCER_INFO = 'simple_cancer_info'


# 年报数据模型
class AnnualModel(object):
    # 基本信息
    BASE_INFO = 'base_info'

    # 网站信息
    WEBSITES_INFO = 'websites_info'

    # 行政许可信息
    ADMINISTRATIVE_LICENSING_INFO = 'administrative_licensing_info'

    # 股东出资信息
    SHAREHOLDER_INFO = 'shareholder_info'

    # 对外投资信息
    INVESTED_COMPANIES_INFO = 'invested_companies_info'

    # 分支机构
    BRANCH_INFO = 'branch_info'

    # 企业资产状况
    ENTERPRISE_ASSET_STATUS_INFO = 'enterprise_asset_status_info'

    # 修改记录
    EDIT_CHANGE_INFO = 'edit_change_info'

    # 股权变更
    EDIT_SHAREHOLDING_CHANGE_INFO = 'edit_shareholding_change_info'

    # 对外担保信息列表
    OUT_GUARANTEE_INFO = 'out_guarantee_info'
